﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using RaptorEngine.Particles;

namespace OilRigSumoWrestlers.Particles
{
	class Explosion : ParticleSystem
    {
       protected override void InitializeSettings(ParticleSettings settings)
        {
            settings.TextureName = "explosion";

            settings.MaxParticles = 400;

            settings.Duration = TimeSpan.FromSeconds(2f);
            settings.DurationRandomness = 1;

            settings.MinHorizontalVelocity = -10;
            settings.MaxHorizontalVelocity = 10;

            settings.MinVerticalVelocity = 0;
            settings.MaxVerticalVelocity = 10;

            settings.EndVelocity = 1;

            settings.MinColor = Color.DarkGray;
            settings.MaxColor = Color.Gray;

            settings.MinRotateSpeed = -1;
            settings.MaxRotateSpeed = 1;

            settings.MinStartSize = 3;
            settings.MaxStartSize = 5;

            settings.MinEndSize = 30;
            settings.MaxEndSize = 50;

            // Use additive blending.
            settings.BlendState = BlendState.Additive;
        }
    }
}